//This does some listening or something?
//Based on the example Feather Plugin by hey0.
//I wish I knew wtf.


public class ehGoldSwordListener extends PluginListener {
    public boolean onBlockCreate(Player player, Block blockPlaced, Block blockClicked, int itemInHand) {
        if (itemInHand == 283 && player.isInGroup("admins")) {
           //changes any block to air (ID: 0)
            Block block = new Block();
            block = blockClicked;
            block.setType(0);
            etc.getServer().setBlock(block);
           return true;
        }
        else {
            return false;
        }
    }

}
